class St {
    constructor(sname,sage) {
        this.sname = sname;
        this.sage = sage;
    }
    say(sname) {
        console.log('my name is'+sname)
    }
}

var st1 = new St('小刘',19)
st1.say('小刘')
console.log(st1)

// 多个函数不需要逗号分隔